import request from '@/utils/request'

// 查询奖惩汇总列表
export function listRePunSummary(query) {
  return request({
    url: '/hr/rePunSummary/list',
    method: 'get',
    params: query
  })
}
// 查询奖惩汇总列表
export function punishSummary() {
  return request({
    url: '/hr/rePunSummary/punishSummary',
    method: 'get'
  })
}

// 查询奖惩汇总详细
export function getRePunSummary(id) {
  return request({
    url: '/hr/rePunSummary/' + id,
    method: 'get'
  })
}

// 新增奖惩汇总
export function addRePunSummary(data) {
  return request({
    url: '/hr/rePunSummary',
    method: 'post',
    data: data
  })
}

// 修改奖惩汇总
export function updateRePunSummary(data) {
  return request({
    url: '/hr/rePunSummary',
    method: 'put',
    data: data
  })
}

// 删除奖惩汇总
export function delRePunSummary(id) {
  return request({
    url: '/hr/rePunSummary/' + id,
    method: 'delete'
  })
}
